package com.yizhuoyan.his.dto;

import com.yizhuoyan.his.entity.DocPrescriptionEntity;
import lombok.Data;

/**
 * 中成药数据返回的数据
 */
@Data
public class DocPrescriptionDto {
    //药品名称
    private String name;
    //单价
    private double price;
    //用法
    private String usageWay;
    //用量
    private String dosage;
    //频次
    private String frequency;
    //数量
    private double amount;
    //状态
    private int state;

    public  DocPrescriptionDto getDocPrescriptionDto(DocPrescriptionEntity entity){
        DocPrescriptionDto dto=new DocPrescriptionDto();
        dto.setState(entity.getState());
        return dto;
    }
}
